import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: resolve => require(['@/components/HelloWorld.vue'], resolve),

    },
    {
      path: '/test',
      name: 'test',
      component: resolve => require(['@/components/test.vue'], resolve),

    },
    {
      path: '/test2',
      name: 'test2',
      component: resolve => require(['@/components/test2.vue'], resolve),

    },
    {
      path: '/treedemo',
      name: 'treedemo',
      component: resolve => require(['@/components/treedemo.vue'], resolve),

    },
    {
      path: '/treedemo2',
      name: 'treedemo2',
      component: resolve => require(['@/components/treedemo2.vue'], resolve),

    },
    {
      path: '/treedemo3',
      name: 'treedemo3',
      component: resolve => require(['@/components/treedemo3.vue'], resolve),

    },
    {
      path: '/fu',
      name: 'HelloWorld',
      component: resolve => require(['@/components/fu.vue'], resolve),

    },
    {
      path: '/demo',
      name: 'demo',
      component: resolve => require(['@/components/demo.vue'], resolve),
    },
    {
      path:'/demo2',
      name:"demo2",
      component: resolve => require(['@/components/demo2.vue'], resolve),
    
    }
  ]
})
